package com.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo.dao.UserDao;
import com.demo.dao.impl.UserDaoImpl;
import com.demo.entity.User;
import com.demo.service.UserService;

@Service
public class UserServiceImpl implements UserService{

	@Autowired
	private UserDao userDao;

	/**
	 * @param username
	 * @return User
	 * 根据username,获得一个User对象
	 * */
	@Override
	public User getOneByUsername(String username) {
		return userDao.findOneByUsername(username);
	}
    

   
}
